export const splitParamsObj = (obj, flag = "m-") => {
  const newObj = {};
  Object.keys(obj || {}).forEach((key) => {
    newObj[flag + key] = obj[key];
  });
  return newObj;
};

export const arrJoin = (arr) => {
  return arr?.length ? arr.join(",") : "";
};

export const arrJoin2 = (arr, field) => {
  return arr.map((item) => item[field]).join(",");
};
